#include <iostream>
#include <conio.h>
#include "Snake.h"
#include <windows.h>


int main ( void )
{
	SNAKE_handle a;
	char field	[HORIZONTAL]	[VERTICAL] = {0};
	memset ( field , ' ', HORIZONTAL * VERTICAL );
	a.set_snake ( field );

	while ( a.self_eat(field) )
	{
		a.User_input();
		a.snake_move ( field );
		system ( "CLS" );
		a.show ( field );
		Sleep ( 50 );
	}
	printf("\nGAME OVER\n");
	Sleep ( 1000 );
	_getch();
	return EXIT_SUCCESS;
}